	<style>
		#metable{
			width:100%;
		}
		#metable th{
			text-align:center;
		}
		#metable td{
			text-align:center;
		}
	</style>
	<include file='Public/header' />
	<h1 class="page-header">评价商品--{$data['gname']}</h1>
	<table id="metable" class='table table-striped'>
	<form action="{:U('add')}" method="post">
	<input type="hidden" name="gid" value="{$data['gid']}">
	<input type="hidden" name="gname" value="{$data['gname']}">
	<input type="hidden" name="uid" value="{$_SESSION['user']['id']}">
	<input type="hidden" name="uname" value="{$_SESSION['user']['name']}">
	<input type="hidden" name="dingid" value="{$data['id']}">
	
		<textarea name='content' class='form-control' rows='3' cols='20'
						placeholder='在这里发表评论'></textarea>
		<div id='fbutton' required='required'>
		评分<select name='star'>
			<option value='1'>1</option>
			<option value='2'>2</option>
			<option value='3'>3</option>
			<option value='4' selected >4</option>
			<option value='5'>5</option>
			<option value='6'>6</option>
			<option value='7'>7</option>
			<option value='8'>8</option>
			<option value='9'>9</option>
			<option value='10'>10</option>
		</select>
		<input type='submit' name='fbsub' class='btn btn-primary' value='发表评论'>
		</div>
	</form>
	</table>
<include file='Public/footer'/>